package com.filmbooks.presenter;

import android.support.annotation.NonNull;

import com.filmbooks.contract.home.HomeMainContract;
import com.filmbooks.model.home.HomeMainModel;
import com.zyw.horrarndoo.sdk.base.BasePresenter;

/**
 * Created by heshuxiang on 2018/3/1.
 * 描述：
 * 公司：盟将威
 * 作者：heshuxiang
 * 日期：2018/3/1.
 * 工程：FilmBooks
 * 包：com.filmbooks.presenter
 */

public class HomeMainPresenter extends HomeMainContract.HomeMainPresenter {


    @Override
    public void onStart() {

    }

    @Override
    public void getTabList() {
        if (mIView == null || mIModel == null) {
            return;
        }
        mIView.showTabList(mIModel.getTabs());
    }

    @Override
    public HomeMainContract.IHomeMainModel getModel() {
        return HomeMainModel.newInstance();
    }

    @NonNull
    public static BasePresenter newInstance() {
        return new HomeMainPresenter();
    }
}
